home *** CD-ROM | disk | FTP | other *** search
/ Psygnosis Promotional CD-ROM for E3 1998 / Psygnosis Promotional CD-ROM for E3 1998.iso / introseq.dir / 00019_Script_19 < prev    next >
Text File  |  1998-05-08  |  3KB  |  84 lines

  1. global gLangList, gLangObj, gPlatformList, gPlatformObj
  2. global ■, baseCount, gAction, gWhichList
  3. -------------------------------------------
  4. on startmovie
  5.   set ■ = pi()
  6.   set gAction = 0
  7.   set gLangList = initFlyers(2, 8)
  8.   set gPlatformList = initFlyers(9, 13)
  9.   prepareNextAction
  10. end startMovie
  11. -------------------------------------------
  12. on idle
  13.   if rollOver(2) OR rollOver(3) OR rollOver(4) OR rollOver(5) OR rollOver(6) OR rollOver(7) OR rollOver(8) OR ¼
  14. rollOver(9) OR rollOver(10) OR rollOver(11) OR rollOver(12) OR rollOver(13) then cursor[15,16]
  15.   else cursor[17,18]
  16.   -------------------------------------------
  17. on initFlyers a, b
  18.   set objectList = []
  19.   repeat with n = a to b
  20.     puppetSprite n, 1
  21.     set the blend of sprite n to 100
  22.     set flyer = 0
  23.     set flyer = new(script "Image Script", n, n)
  24.     append objectList, flyer
  25.   end repeat
  26.   RETURN objectList
  27. end initFlyers
  28. -------------------------------------------
  29. on briefFlyers whichList, endPosList, triggerList, accelOrDecel, steps
  30.   repeat with n = 1 to count(whichList)
  31.     set theSprite = the mySprite of getAt(gWhichList, n)
  32.     set startPos = [the locH of sprite theSprite, the locV of sprite theSprite]
  33.     set endPosition = getAt(endPosList, n)
  34.     set myTrigger = getAt(triggerList, n)
  35.     set flyer = getAt(whichList, n)
  36.     setFlyInfo(flyer, startPos, endPosition, steps, myTrigger, accelOrDecel)
  37.   end repeat
  38. end  briefFlyer
  39. -------------------------------------------
  40. on fly
  41.   repeat with n = 1 to count(gWhichList)
  42.     fly getAt(gWhichList, n)
  43.   end repeat
  44. end fly
  45. -------------------------------------------
  46. on prepareNextAction
  47.   set gAction = gAction + 1
  48.   if gAction = 1 then briefFlyOn gLangList, 565, 444, 20
  49.   else if gAction = 2 then nothing
  50.   else if gAction = 3 then briefFlyOff gLangList, 10
  51.   else if gAction = 4 then briefFlyOn gPlatformList, the locH of sprite (the mySprite of gLangObj), the locV of sprite (the mySprite of gLangObj), 20
  52.   else if gAction = 5 then nothing
  53.   else if gAction = 6 then briefFlyOff gPlatformList, 10
  54.   else if gAction = 7 then closeGap
  55.   else if gAction = 8 then quitOut
  56. end prepareNextAction
  57. -------------------------------------------
  58. on closeGap
  59.   set gPlatformList = [gPlatformObj]
  60.   briefFlyOn gPlatformList, the locH of sprite (the mySprite of gLangObj), the locV of sprite (the mySprite of gLangObj), 6
  61. end closeGap
  62. -------------------------------------------
  63. on quitOut
  64.   --  go to frame "wait"
  65.   go to frame "video" of movie "Psygnosis.dir"
  66.   cursor 200
  67. end quitOut
  68. -------------------------------------------
  69. on stopMovie
  70.   --  set gLangList = 0
  71.   --  set gLangObj = 0
  72.   --  set gPlatformList = 0
  73.   --  set gPlatformObj = 0
  74.   --  set ■ = 0
  75.   --  set baseCount = 0
  76.   --  set gAction = 0
  77.   --  set gWhichList = 0
  78. end stopMovie
  79.  
  80.  
  81.  
  82.  
  83.  
  84.